import request from '@/utils/request'

// 充值列表
export function getFinanceRechargeListByPageCondition (params) {
    return request({
      params,
      url: '/back/xsFinance/getFinanceRechargeListByPageCondition'
    })
}

// 充值套餐列表
export function getRechargeList (params) {
  return request({
    params,
    url: '/back/xsRecharge/getRechargeList'
  })
}

// 新增充值套餐
export function addRecharge (params) {
  return request({
    params,
    method:'post',
    url: '/back/xsRecharge/addRecharge'
  })
}

// 修改充值套餐
export function updateRecharge (params) {
  return request({
    params,
    method:'put',
    url: '/back/xsRecharge/updateRecharge'
  })
}

// 删除充值套餐
export function updateRechargeIsFlag (params) {
  return request({
    params,
    method:'put',
    url: '/back/xsRecharge/updateRechargeIsFlag'
  })
}
// 删除充值套餐
export function getRechargeInfo (params) {
  return request({
    params,
    url: '/back/xsRecharge/getRechargeInfo'
  })
}